
//----------------------------------------
// 代码由GenlibVcl工具自动生成。
// Copyright © ying32. All Rights Reserved.
//
//----------------------------------------

function FontDialog_Create(AOwner: TComponent): TFontDialog; stdcall;
begin
  Result :=  TFontDialog.Create(AOwner);
end;

procedure FontDialog_Free(AObj: TFontDialog); stdcall;
begin
  AObj.Free;
end;

function FontDialog_Execute(AObj: TFontDialog): LongBool; stdcall;
begin
  Result :=  AObj.Execute;
end;

function FontDialog_FindComponent(AObj: TFontDialog; AName: PChar): TComponent; stdcall;
begin
  Result :=  AObj.FindComponent(AName);
end;

function FontDialog_GetNamePath(AObj: TFontDialog): PChar; stdcall;
begin
  Result :=  PChar(AObj.GetNamePath);
end;

function FontDialog_HasParent(AObj: TFontDialog): LongBool; stdcall;
begin
  Result :=  AObj.HasParent;
end;

procedure FontDialog_Assign(AObj: TFontDialog; Source: TPersistent); stdcall;
begin
  AObj.Assign(Source);
end;

procedure FontDialog_DisposeOf(AObj: TFontDialog); stdcall;
begin
  AObj.DisposeOf;
end;

function FontDialog_ClassType(AObj: TFontDialog): TClass; stdcall;
begin
  Result :=  AObj.ClassType;
end;

function FontDialog_ClassName(AObj: TFontDialog): PChar; stdcall;
begin
  Result :=  PChar(AObj.ClassName);
end;

function FontDialog_InstanceSize(AObj: TFontDialog): Integer; stdcall;
begin
  Result :=  AObj.InstanceSize;
end;

function FontDialog_InheritsFrom(AObj: TFontDialog; AClass: TClass): LongBool; stdcall;
begin
  Result :=  AObj.InheritsFrom(AClass);
end;

function FontDialog_Equals(AObj: TFontDialog; Obj: TObject): LongBool; stdcall;
begin
  Result :=  AObj.Equals(Obj);
end;

function FontDialog_GetHashCode(AObj: TFontDialog): Integer; stdcall;
begin
  Result :=  AObj.GetHashCode;
end;

function FontDialog_ToString(AObj: TFontDialog): PChar; stdcall;
begin
  Result :=  PChar(AObj.ToString);
end;

function FontDialog_GetFont(AObj: TFontDialog): TFont; stdcall;
begin
  Result :=  AObj.Font;
end;

procedure FontDialog_SetFont(AObj: TFontDialog; AValue: TFont); stdcall;
begin
  AObj.Font := AValue;
end;

function FontDialog_GetOptions(AObj: TFontDialog): TFontDialogOptions; stdcall;
begin
  Result :=  AObj.Options;
end;

procedure FontDialog_SetOptions(AObj: TFontDialog; AValue: TFontDialogOptions); stdcall;
begin
  AObj.Options := AValue;
end;

function FontDialog_GetHandle(AObj: TFontDialog): HWND; stdcall;
begin
  Result :=  AObj.Handle;
end;

procedure FontDialog_SetOnClose(AObj: TFontDialog; AEventId: NativeUInt); stdcall;
begin
  if AEventId = 0 then
  begin
    AObj.OnClose := nil;
    TEventClass.Remove(AObj, @TEventClass.OnClose);
    Exit;
  end;
  AObj.OnClose := TEventClass.OnClose;
  TEventClass.Add(AObj, @TEventClass.OnClose, AEventId);
end;

procedure FontDialog_SetOnShow(AObj: TFontDialog; AEventId: NativeUInt); stdcall;
begin
  if AEventId = 0 then
  begin
    AObj.OnShow := nil;
    TEventClass.Remove(AObj, @TEventClass.OnShow);
    Exit;
  end;
  AObj.OnShow := TEventClass.OnShow;
  TEventClass.Add(AObj, @TEventClass.OnShow, AEventId);
end;

function FontDialog_GetComponentCount(AObj: TFontDialog): Integer; stdcall;
begin
  Result :=  AObj.ComponentCount;
end;

function FontDialog_GetComponentIndex(AObj: TFontDialog): Integer; stdcall;
begin
  Result :=  AObj.ComponentIndex;
end;

procedure FontDialog_SetComponentIndex(AObj: TFontDialog; AValue: Integer); stdcall;
begin
  AObj.ComponentIndex := AValue;
end;

function FontDialog_GetOwner(AObj: TFontDialog): TComponent; stdcall;
begin
  Result :=  AObj.Owner;
end;

function FontDialog_GetName(AObj: TFontDialog): PChar; stdcall;
begin
  Result :=  PChar(AObj.Name);
end;

procedure FontDialog_SetName(AObj: TFontDialog; AValue: PChar); stdcall;
begin
  AObj.Name := AValue;
end;

function FontDialog_GetTag(AObj: TFontDialog): NativeInt; stdcall;
begin
  Result :=  AObj.Tag;
end;

procedure FontDialog_SetTag(AObj: TFontDialog; AValue: NativeInt); stdcall;
begin
  AObj.Tag := AValue;
end;

function FontDialog_GetComponents(AObj: TFontDialog; AIndex: Integer): TComponent; stdcall;
begin
  Result :=  AObj.Components[AIndex];
end;

function FontDialog_StaticClassType: TClass; stdcall;
begin
  Result := TFontDialog;
end;

exports
  FontDialog_Create,
  FontDialog_Free,
  FontDialog_Execute,
  FontDialog_FindComponent,
  FontDialog_GetNamePath,
  FontDialog_HasParent,
  FontDialog_Assign,
  FontDialog_DisposeOf,
  FontDialog_ClassType,
  FontDialog_ClassName,
  FontDialog_InstanceSize,
  FontDialog_InheritsFrom,
  FontDialog_Equals,
  FontDialog_GetHashCode,
  FontDialog_ToString,
  FontDialog_GetFont,
  FontDialog_SetFont,
  FontDialog_GetOptions,
  FontDialog_SetOptions,
  FontDialog_GetHandle,
  FontDialog_SetOnClose,
  FontDialog_SetOnShow,
  FontDialog_GetComponentCount,
  FontDialog_GetComponentIndex,
  FontDialog_SetComponentIndex,
  FontDialog_GetOwner,
  FontDialog_GetName,
  FontDialog_SetName,
  FontDialog_GetTag,
  FontDialog_SetTag,
  FontDialog_GetComponents,
  FontDialog_StaticClassType;

